home *** CD-ROM | disk | FTP | other *** search
/ Collection of Internet / Collection of Internet.iso / protocol / standard / scsi / scsi1_do.1 < prev    next >
Internet Message Format  |  1993-07-14  |  58KB

  1. From coffin@ROCKY2.ROCKEFELLER.EDU Thu Mar 22 07:04:54 1990
  2. Flags: 000000000001
  3. Return-Path: <coffin@ROCKY2.ROCKEFELLER.EDU>
  4. Received: from ROCKY2.ROCKEFELLER.EDU by rascal.ics.utexas.edu. (4.0/SMI-4.0)
  5.     id AA28252; Thu, 22 Mar 90 07:04:42 CST
  6. Received: by ROCKY2.ROCKEFELLER.EDU (5.61/1.34)
  7.     id AA14253; Thu, 22 Mar 90 08:05:07 -0500
  8. Message-Id: <9003221305.AA14253@ROCKY2.ROCKEFELLER.EDU>
  9. To: werner@rascal.ics.utexas.edu
  10. Subject: scsidocs-Pt1of7
  11. Date: Thu, 22 Mar 90 08:04:59 -0500
  12. From: coffin@ROCKY2.ROCKEFELLER.EDU
  13.  
  14.  
  15.  
  16. BSR X3.131-198_
  17. NOTE:  Revision 17B consists of changes made by the X3T9/84-40 
  18. REV 1B X3T9.2 task group at their December 10, 1985 meeting.        
  19. X3T9.2/82-2
  20. These changes were made in order to make the X3T9.2 REV 17B
  21. draft proposed standard consistent with the ISO/TC97/SC13 
  22. draft proposal.  See page 1.1 for a changed page list.
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.                                 draft proposed
  31.                           American National Standard
  32.                           for information systems -
  33.  
  34.  
  35.                     SMALL COMPUTER SYSTEM INTERFACE (SCSI)
  36.  
  37.  
  38.                               December 16, 1985
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46. Secretariat
  47.  
  48. Computer and Business Equipment Manufacturers Association
  49.  
  50.  
  51. Abstract:  This standard defines mechanical, electrical, and functional 
  52. requirements for attaching small computers with each other and with low- to 
  53. medium-performance intelligent peripherals such as rigid disks, flexible 
  54. disks, magnetic tape devices, printers, and optical disks.  The resulting 
  55. interface facilitates the interconnection of small computers and intelligent 
  56. peripherals and thus provides a common interface specification for both 
  57. systems integrators and suppliers of intelligent peripherals.
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64. POINTS OF CONTACT:
  65.  
  66. William E. Burr (X3T9.2 Chairman)      John B. Lohmeyer (X3T9.2 Vice Chairman)
  67. U.S. Department of Commerce            NCR Corporation
  68. National Bureau of Standards           3718 N. Rock Road
  69. Technology A-216                       Wichita, KS 67226
  70. Gaithersburg, MD 20899                 (316) 688-8703 
  71. (301) 921-3723
  72. .pa
  73.  
  74. .he Small Computer System Interface        X3T9.2/82-2 - Rev. 17B         12/16/85
  75. .fo                                       1.1
  76.                               CHANGED PAGE LIST
  77.  
  78. At their December 10, 1985 meeting, the X3T9.2 task group made a number of 
  79. changes to Revision 17 of this document.  (Revision 17A was distributed at the 
  80. meeting proposing some of the changes; the remainder of the changes were made 
  81. at the meeting.)  The primary reason for making these changes is to keep this 
  82. document consistent with the ISO/TC97/SC13 SCSI draft proposal.  The pages 
  83. that have changed since Revision 17 are listed below:
  84.  
  85.    Page                                  Change
  86.   -------  -------------------------------------------------------------------
  87.  
  88.      1     Changed revision number and date.
  89.    1.1     Replaced changed page list.
  90.      2     Editorial revisions to the foreword.
  91.   7-7.1    Revised the Table of Contents to reflect the document changes.
  92.      9     Added description of the contents of appendixes D - G.
  93.     12     Moved section 4.3.2, Shielded Connectors into Appendix D.  Merged 
  94.            section 4.3.1 into section 4.3.
  95.  12.1-12.2 \
  96.    17-19    \  Deleted pages 
  97.  19.1-19.4  /  (Information moved to Appendix D).
  98.  21.1-21.2 /
  99.    20-21   Deleted second line of Table titles.
  100.     24     Redrew figures 4-5 through 4-7.
  101.     26     Redrew figure 4-9.
  102.     37     Clarified that multiple messages may be sent during a message phase.
  103.     38     Clarification to the MESSAGE OUT phase error handling.
  104.     41     Redrew figures 5-1 and 5-2.
  105.     43     Editorial clarification.
  106.     49     Deleted "immediately".
  107.   50-50.1  Clarified that unit attention condition is on a per logical unit 
  108.            basis.  Also clarified "other" command is other than REQUEST SENSE.
  109.    65-66   Added ISO version field to the INQUIRY data.
  110.    93.1    Revised Table 8-14.1 to reference the latest X3B5 document number 
  111.            and to refer to Appendix F for additional standards.
  112.    94-99   Editorial clarifications to the RESERVE and RELEASE commands.
  113.    113     Clarified which status codes are to be returned on SEARCH DATA 
  114.            commands.
  115.    119     Clarified that READ BLOCK LIMITS returns the target's capability as 
  116.            opposed to its current setting.
  117.    132     Added code values 0BH through 0DH to Table 9-14.1.
  118.  132.2-133 Editorial clarifications to the RESERVE UNIT and RELEASE UNIT 
  119.            commands.
  120.   147-149  Editorial clarifications to the RESERVE UNIT and RELEASE UNIT 
  121.            commands.
  122.  174-176.2 Revised Appendix A to make the figure legible.
  123.   182-183  Redrew figures C1 and C2.
  124.   184-192  Added Appendix D, Recommended Shielded Connectors.  Most of this 
  125.            information was previously in section 4.3.2.
  126.   193-194  Added Appendix E, Conformance.
  127.   195-196  Added Appendix F, Additional Medium Type and Density Code Standards.
  128.    197     Appendix G was previously Appendix D.  Editorial clarification.
  129. .pa
  130.  
  131. .pn 2
  132. .fo                                       #
  133.                                    FOREWORD
  134.     (This Foreword is not part of American National Standard X3.131-198_.)
  135.  
  136. The development of comparatively inexpensive VLSI device controllers have 
  137. recently changed the economics of interfaces for small system storage devices. 
  138. Where expensive controller logic was once shared among as many devices as 
  139. possible, in many cases it now makes economic sense to build a controller in 
  140. each device.  This is particularly true for high-performance storage devices, 
  141. where the intimate interactions of the recording medium, the recording 
  142. mechanism, and the recording code cause intersymbol interference and error 
  143. recovery problems that are highly specific to the chosen technologies, and are 
  144. best resolved within the device itself.  
  145.  
  146. Moreover, the number of types of storage devices for small computers, and the 
  147. industry that builds them, have grown dramatically in the past few years.  In 
  148. particular, the emergence of physically small, but comparatively high-capacity 
  149. and high-performance fixed-medium magnetic disk devices (virtually non-
  150. existent in the late 1970s, but a multibillion dollar business in the mid-
  151. 1980s) has driven the development of small computer systems and caused a need 
  152. for other classes of devices, such as streaming cartridge tape drives, for 
  153. backup and data interchange.
  154.  
  155. Because device interfaces are very specific to device types, many device level 
  156. interface standards would be required to service all small computer device 
  157. types.  Because backplane buses reside at the center of computers, and have 
  158. dramatic performance effects, many different ones are needed for different 
  159. system requirements.  To connect every backplane bus to every device interface 
  160. through a controller would require an almost unbounded number of specific 
  161. controller products.  
  162.  
  163. In addition, in many systems today, it is not the computer which is "central", 
  164. it is the storage facility.  That is, one or two large capacity storage 
  165. subsystems serve several computers.  An interface adapted to this reality was 
  166. needed.  
  167.  
  168. By 1982, all the needs given above were widely recognized in the industry and 
  169. by the members of X3T9 and its Task Groups.  A commercial small system 
  170. parallel bus, the Shugart Associates System Interface (SASI), generally met 
  171. the small system requirements for a device-independent peripheral or system 
  172. bus and had enjoyed significant market success.  It was offered to X3T9.2 as 
  173. the basis for a standard.  X3T9.2 chose the name Small Computer System 
  174. Interface (SCSI) for that standard and began work at its April 1982 meeting.  
  175. The present SCSI dpANS is a formalization and extension of the SASI.  Many 
  176. existing SASI devices are SCSI compatible.
  177.  
  178. Since April 1982, X3T9.2 has held plenary sessions, at two month intervals, 
  179. plus numerous informal working meetings.  The original SASI has been extended 
  180. in a number of ways, including:
  181.  
  182.   (1)  A differential electrical option has been added to allow use of longer 
  183. cables (up to 25 meters) in environments where common mode noise is a concern.
  184.  
  185.   (2)  A synchronous transfer option has been developed allowing maximum 
  186. transfer rates in the 3 to 4 megabyte per second range.
  187.  
  188.   (3)  An optional "extended" command set has been added, allowing for very 
  189.  
  190. large capacity storage devices (a block address space of 232 blocks versus 221 
  191. for SASI), and Inquiry commands that allow self-configuring driver software. 
  192.  
  193.   (4)  Command sets for magnetic tape (both start/stop and streaming), 
  194. printers, processors, optical disks, and read-only optical disks have been 
  195. added to the proposed SCSI standard, in addition to those for magnetic disks.  
  196.  
  197. Although it might have been premature in April 1982 to claim that SASI was 
  198. then a de facto standard, this surely is the case for SASI/SCSI today.  SCSI 
  199. compatible host adapters, controllers, and peripheral devices are now widely 
  200. manufactured around the world.  Host adapters are available for most small 
  201. computers with accessible backplane buses.  SCSI controllers are widely 
  202. available for all the de jure and de facto standard magnetic disk and magnetic 
  203. tape device interfaces.  Small high-capacity fixed-medium magnetic disks, 
  204. rigid removable-medium magnetic disks, high-capacity Bernoulli-effect flexible 
  205. disks, and other closed-loop high-capacity flexible disk products, as well as 
  206. optical disk products, are all available with integral SCSI controllers.  SCSI 
  207. subsystems that integrate both a rigid-disk and a streaming-tape drive into a 
  208. single package are also available.  SCSI interface chips are available, and 
  209. some disk controller chip sets also provide SCSI support.
  210.  
  211. Since a large number of companies have implemented and tested the SCSI during 
  212. the development of the proposed standard, no separate test program has been 
  213. deemed necessary.  At the February 1984 meeting of X3T9.2, representatives of 
  214. the following companies stated, for the record, that their companies had 
  215. implemented and tested SCSI:  Adaptec, Adaptive Data, Data Technology Corp., 
  216. Fujitsu America, Inc., NCR Corp., and Shugart Corp.  This is not a complete 
  217. list of companies implementing products using SCSI nor is it a promise by 
  218. these companies to offer SCSI products.  
  219.  
  220. The SCSI fills an urgent need, provides for the future, and is consonant with 
  221. actual commercial practice.  Most important, the timing is right.  SCSI 
  222. catches the floodtide of new, high-performance storage devices for small 
  223. systems, and promises to bring a measure of needed order to what would 
  224. otherwise be a chaotic and fragmented market.  
  225.  
  226. This standard specifies the mechanical, electrical, and functional 
  227. requirements for a small computer input/output bus interface, and command sets 
  228. for peripheral device types, particularly storage devices, commonly used with 
  229. small computers.
  230.  
  231. Suggestions for improvement of this standard will be welcome.  They should be 
  232. sent to the Computer and Business Equipment Manufacturers Association, 311 
  233. First Street, NW, Suite 500, Washington, DC 20001.
  234.  
  235. This standard was processed and approved for submittal to ANSI by American 
  236. National Standards Committee on Computers and Information Processing, X3.  
  237. Committee approval of the standard does not imply that all committee members 
  238. voted for its approval.
  239. .fo                                       2.1
  240. .pa
  241.  
  242. .pn 3
  243. .fo                                       #
  244. At the time it approved this standard, the X3 Committee had the following 
  245. members:
  246.  
  247. TO BE DETERMINED
  248. .pa
  249.  
  250. Subcommittee X3T9 on I/O interfaces, which reviewed this standard, had the 
  251. following members:
  252.  
  253. Delbert L. Shoemaker (Chairman)
  254. Ron Tranquilli (Vice Chairman)
  255.  
  256. Bob Bender                         G. Atterbury (Alt)
  257. John Blagaila                      Charles Brill (Alt) 
  258. Fred Ciechowski                    William E. Burr (Alt) 
  259. George Clark                       Roger Cormier (Alt) 
  260. Stephen W. Cooper                  Hank Dorris (Alt) 
  261. Louis C. Domshy                    Thomas A. Fiers (Alt) 
  262. Robert Dugan                       Henry Ginter (Alt)
  263. Ross H. Jaibaji                    William J. McClain (Alt)
  264. Patrick Lannan                     William Mosenthal, Jr. (Alt)
  265. Gene Milligan                      Kirk Moulton (Alt)
  266. Tom Morrow
  267. Mike Newton
  268. Gary S. Robinson
  269. Arnold John Roccati
  270. Floyd E. Ross
  271. Holly S. White
  272.  
  273.  
  274. (Note: The name lists on this page and the following page are incomplete and 
  275. they will be updated upon final approval of this standard.)
  276. .pa
  277.  
  278. Task Group X3T9.2 on Lower-Level Interfaces, which developed this standard, 
  279. had the following members:
  280.  
  281. William E. Burr (Chairman)
  282. John B. Lohmeyer (Vice Chairman)
  283.  
  284. Ezra R. Alcudia                    Keith Amundsen (Alt) 
  285. J. L. Amstutz                      Karen Anneberg (Alt) 
  286. Bob Bender                         Charles Brill (Alt)
  287. John Blagaila                      Larry Boucher (Alt)
  288. Tom Briggs                         Paul Clement (Alt) 
  289. David T. Cornaby                   George E. Clark (Alt)
  290. David F. Craft, Jr.                Steve Cooper (Alt) 
  291. Jay Cunningham                     Gary Crowell (Alt) 
  292. Willard S. Davidson                Jon Ericson (Alt) 
  293. Terry Dawson                       Tom Fiers (Alt)
  294. Phil Devin                         Stephen Fitzgerald (Alt) 
  295. Louis C. Domshy                    Marty Francis (Alt) 
  296. Norm Dornseif                      William Homans (Alt) 
  297. Alan Ebright                       J. V. Howell (Alt) 
  298. Anita  Freeman                     Skip Kilsdonk (Alt)
  299. Abe Gindi                          Jim Korpi (Alt)
  300. William A. Horton                  Lawrence J. Lamers (Alt) 
  301. Frank Krulc                        Keith Mueller (Alt)
  302. Patrick E. Lannan                  Don Nanneman (Alt) 
  303. Daniel Loski                       Doug Nolff (Alt) 
  304. William C. Mavity                  Richard Reiser (Alt) 
  305. Gene Milligan                      William H. Roberts (Alt) 
  306. Bob Mortensen                      Floyd E. Ross (Alt)
  307. Gary S. Robinson                   D. Michael Robinson (Alt)
  308. Don Rodgers                        Jay Seashore (Alt) 
  309. Arnold J. Roccati                  Chuck Spatafore (Alt)
  310. Jack Schiffhauer                   Jeff Stai (Alt)
  311. Ralph H. Schultz                   Paul Stavish (Alt) 
  312. Moshe Segal
  313. Delbert L. Shoemaker 
  314. Tim Slaton 
  315. Robert N. Snively
  316. Adrienne Turenne 
  317. Norm Zimmerman 
  318. .pa
  319.  
  320.                       T A B L E   O F   C O N T E N T S 
  321.  
  322.   1. Scope...................................................................8
  323.  
  324.   2. Referenced Standard.....................................................9
  325.  
  326.   3. Glossary and Conventions................................................9
  327.      3.1  Glossary...........................................................9
  328.      3.2  Editorial Conventions.............................................11
  329.  
  330.   4. Physical Characteristics...............................................11
  331.      4.1  Physical Description..............................................11
  332.      4.2  Cable Requirements................................................11
  333.      4.3  Connector Requirements............................................12
  334.      4.4  Electrical Description............................................22
  335.      4.5  SCSI Bus..........................................................25
  336.      4.6  SCSI Bus Signals..................................................27
  337.      4.7  SCSI Bus Timing...................................................30
  338.  
  339.   5. Logical Characteristics................................................31
  340.      5.1  SCSI Bus Phases...................................................31
  341.      5.2  SCSI Bus Conditions...............................................38
  342.      5.3  SCSI Bus Phase Sequences..........................................40
  343.      5.4  SCSI Pointers.....................................................42
  344.      5.5  Message System Specification......................................42
  345.  
  346.   6. SCSI Commands .........................................................49
  347.      6.1  Command Implementation Requirements...............................50
  348.      6.2  Command Descriptor Block........................................50.1
  349.      6.3  Command Examples..................................................55
  350.  
  351.   7. Command Descriptions for All Device Types..............................57
  352.      7.1  Group 0 Commands for All Device Types.............................57
  353.      7.2  Group 1 Commands for All Device Types.............................76
  354.      7.3  Group 2 Commands for All Device Types.............................79
  355.      7.4  Group 3 Commands for All Device Types.............................79
  356.      7.5  Group 4 Commands for All Device Types.............................79
  357.      7.6  Group 5 Commands for All Device Types.............................79
  358.      7.7  Group 6 Commands for All Device Types.............................79
  359.      7.8  Group 7 Commands for All Device Types.............................79
  360.  
  361.   8. Command Descriptions for Direct-Access Devices.........................80
  362.      8.1  Group 0 Commands for Direct-Access Devices........................80
  363.      8.2  Group 1 Commands for Direct-Access Devices.......................104
  364.  
  365.   9. Group 0 Command Descriptions for Sequential-Access Devices............117
  366.  
  367.  10. Group 0 Command Descriptions for Printer Devices......................140
  368.  
  369.  11. Group 0 Command Descriptions for Processor Devices....................152
  370.  
  371.  12. Command Descriptions for Write-Once Read-Multiple Devices.............155
  372.      12.1  Group 0 Commands for Write-Once Read-Multiple Devices...........155
  373.      12.2  Group 1 Commands for Write-Once Read-Multiple Devices...........164
  374. .pa
  375.  
  376.  13. Command Descriptions for Read-Only Direct-Access Devices..............170
  377.      13.1  Group 0 Commands for Read-Only Direct-Access Devices............170
  378.      13.2  Group 1 Commands for Read-Only Direct-Access Devices............171
  379.  
  380.  14. Status ...............................................................172
  381.  
  382.  
  383.                         L I S T   O F   F I G U R E S 
  384.  
  385.  4-1  Nonshielded SCSI Device Connector.....................................13
  386.  4-2  Nonshielded Cable Connector...........................................15
  387.  4-5  Termination for Single-Ended Devices..................................24
  388.  4-6  Termination for Differential Devices..................................24
  389.  4-7  Differential Driver Protection Circuit (Optional).....................24
  390.  4-8  SCSI ID Bits..........................................................25
  391.  4-9  Sample SCSI Configurations............................................26
  392.  
  393.  5-1  Phase Sequences without Arbitration...................................41
  394.  5-2  Phase Sequences with Arbitration......................................41
  395.  5-3  Simplified SCSI System................................................42
  396.  
  397.  
  398. Appendixes
  399.  
  400.  Appendix A................................................................174
  401.  
  402.  SCSI Signal Sequence Example
  403.  
  404.    Appendix A Figures
  405.      A1:  SCSI Timing Chart ...............................................175
  406.  
  407.  Appendix B................................................................177
  408.  
  409.  Typical Bus Phase Sequence
  410.  
  411.  Appendix C................................................................179
  412.  
  413.  SCSI System Operation
  414.  
  415.      C1.  Host Memory / Host Adapter / SCSI Controller Relationship........179
  416.      C2.  SCSI READ Command Example........................................180
  417.      C3.  I/O Channel Concept..............................................181
  418.  
  419.    Appendix C Figures
  420.      C1:  Snapshot Prior to Initial Selection..............................182
  421.      C2:  Snapshot Prior to Data Transfer..................................183
  422.  
  423.  Appendix D................................................................184
  424.  
  425.  Recommended Shielded Connectors
  426.  
  427.      D1.  Shielded Connector, Alternative 1................................184
  428.      D2.  Shielded Connector, Alternative 2................................184
  429.      D3.  EUROCARD Boxes...................................................184
  430. .pa
  431.  
  432. .fo                                      7.1
  433.    Appendix D Figures
  434.      D1:  Female Shielded SCSI Cable Connector, Alternative 1..............185
  435.      D2:  Male Shielded SCSI Device Connector, Alternative 1...............187
  436.      D3:  Shielded SCSI Device Connector, Alternative 2....................189
  437.      D4:  Shielded SCSI Cable Connector, Alternative 2.....................190
  438.  
  439.  Appendix E................................................................193
  440.  
  441.  Conformance
  442.  
  443.      E1.  Alternatives.....................................................193
  444.      E2.  Levels of Conformance............................................193
  445.      E3.  Options..........................................................194
  446.      E4.  Statement of Conformance.........................................194
  447.  
  448.  Appendix F................................................................195
  449.  
  450.  Additional Medium Type and Density Code Standards
  451.  
  452.  Appendix G................................................................197
  453.  
  454.  Future Standardization    
  455. .pa
  456.  
  457.  
  458.  
  459.  
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.  
  467.  
  468.  
  469.  
  470.  
  471.  
  472.  
  473.  
  474.  
  475.  
  476.  
  477.  
  478.  
  479.  
  480.  
  481.  
  482.  
  483.  
  484.  
  485.  
  486.  
  487.                      (This page is intentionally blank.)
  488. .fo                                      7.2
  489. .pa
  490.  
  491. 
  492. .fo Section 1                             #
  493. 1. Scope
  494.  
  495. This American National Standard provides the mechanical, electrical, and 
  496. functional requirements for a small computer input/output bus and command sets 
  497. for peripheral device types commonly used with small computers.
  498.  
  499.   The small computer system interface, described in this standard, is a local 
  500. I/O bus that can be operated at data rates up to 4 megabytes per second 
  501. depending upon circuit implementation choices.  The primary objective of the 
  502. interface is to provide host computers with device independence within a 
  503. class of devices.  Thus, different disk drives, tape drives, printers, and 
  504. even communication devices can be added to the host computer(s) without 
  505. requiring modifications to generic system hardware or software.  Provision 
  506. is made for the addition of nongeneric features and functions through vendor 
  507. unique fields and codes.
  508.  
  509.   The interface uses logical rather than physical addressing for all data 
  510. blocks.  For direct access devices, each logical unit may be interrogated to 
  511. determine how many blocks it contains.  A logical unit may coincide with all 
  512. or part of a peripheral device.
  513.  
  514.   Provision is made for cable lengths up to 25 meters using differential 
  515. drivers and receivers.  A single-ended driver and receiver configuration is 
  516. defined for cable lengths of up to 6 meters and is primarily intended for 
  517. applications within a cabinet.
  518.  
  519.   The interface protocol includes provision for the connection of multiple 
  520. initiators (SCSI devices capable of initiating an operation) and multiple 
  521. targets (SCSI devices capable of responding to a request to perform an 
  522. operation).  Optional distributed arbitration (i.e., bus-contention logic) is 
  523. built into the architecture of SCSI.  A priority system awards interface 
  524. control to the highest priority SCSI device that is contending for use of the 
  525. bus.  The time to complete arbitration is independent of the number of devices 
  526. that are contending and can be completed in less than 10 microseconds.
  527.  
  528.   The physical characteristics are described in Section 4.  There are two 
  529. electrical alternatives: single-ended and differential.  Single-ended and 
  530. differential devices are electrically different and shall not be mixed on the 
  531. same bus.  In addition, there are several options: shielded or unshielded 
  532. connectors may be used and parity may or may not be implemented.
  533.  
  534.   Section 5 describes the logical characteristics of the interface.  An 
  535. arbitration option is defined to permit multiple initiators and to permit 
  536. concurrent I/O operations.  All SCSI devices are required to be capable of 
  537. operating with the defined asynchronous transfer protocol.  In addition, an 
  538. optional synchronous transfer protocol is defined.  Section 5 also specifies a 
  539. message protocol for control of the interface.  In most cases, messages are 
  540. not directly apparent to the host computer software.  Only one message, 
  541. COMMAND COMPLETE, is mandatory; all others are optional and are not 
  542. necessarily implemented.  Note that some options (e.g., synchronous transfer) 
  543. require the implementation of certain messages.
  544.  
  545.   The SCSI command structure is specified in Section 6.  Commands are 
  546. classified as mandatory (M), extended (E), optional (O), or vendor unique (V).  
  547. SCSI devices shall implement all mandatory commands defined for the 
  548. appropriate device type and may implement other commands as well.  Extended 
  549.  
  550. SCSI devices shall implement all extended plus all mandatory commands and may 
  551. implement other commands as well.  Extended SCSI devices contain commands that 
  552. facilitate the writing of self-configuring software drivers that can 
  553. "discover" all necessary attributes without prior knowledge of specific 
  554. peripheral characteristics (such as storage capacity).  Extended commands for 
  555. direct access devices also implement a very large logical block address space 
  556. (232 blocks), although mandatory commands for direct access devices implement 
  557. a somewhat smaller logical block address space (221 blocks).
  558.  
  559.   Section 7 specifies those commands that have a consistent meaning for all 
  560. device types.
  561.  
  562.   Sections 8 through 13 contain commands for direct-access (e.g., magnetic 
  563. disk), sequential-access (e.g., magnetic tape), printer, processor, write-
  564. once-read-multiple (e.g., optical disk), and read-only direct-access devices, 
  565. respectively.  The commands in each of these sections are unique to the device 
  566. type, or they have interpretations, fields, or features that are specific for 
  567. the device type.  Thus, for example, although the WRITE command is used for 
  568. several device types, it has a somewhat different form for each type, with 
  569. different parameters and meanings.  Therefore, it is specified separately for 
  570. each device type.
  571.  
  572.   Section 14 describes the status byte for all device types.  Status is 
  573. returned by targets at the end of each command.
  574.  
  575.   Appendixes A through C provide examples of SCSI signal sequences, timing, 
  576. and phase sequences.  Appendix D contains information on recommended shielded 
  577. connectors.  Appendix E contains information on conformance statements.  
  578. Appendix F contains information on other standards related to medium types and 
  579. density codes for flexible disks and magnetic tapes.  Appendix G contains 
  580. information on future extensions to SCSI that are being considered by X3T9.2  
  581. However, the appendixes are not part of this standard.
  582.  
  583.  
  584. 
  585. .fo Section 3                            #
  586. 3. Glossary and Conventions
  587.  
  588. 3.1 Glossary
  589.  
  590. byte.  In this standard, this term indicates an 8-bit (octet) byte.
  591.  
  592. command descriptor block (CDB).  The structure used to communicate requests 
  593. >From an initiator to a target.
  594.  
  595. connect.  The function that occurs when an initiator selects a target to start 
  596. an operation.
  597. ____________
  598.  
  599. 1 Available from the Electronic Industries Association, 2001 Eye Street NW, 
  600. Washington, D.C. 20006.
  601. .cp 56
  602.  
  603. disconnect.  The function that occurs when a target releases control of the 
  604. SCSI bus, allowing it to go to the BUS FREE phase.
  605.  
  606. initiator.  An SCSI device (usually a host system) that requests an operation 
  607. to be performed by another SCSI device.
  608.  
  609. INTERMEDIATE status.  A status code sent from a target to an initiator upon 
  610. completion of each command in a set of linked commands except the last command 
  611. in the set.
  612.  
  613. logical unit.  A physical or virtual device addressable through a target.
  614.  
  615. logical unit number.  An encoded three-bit identifier for the logical unit.
  616.  
  617. LSB.  Least significant byte.
  618.  
  619. LUN.  Logical unit number.
  620.  
  621. mm.  Millimeter.
  622.  
  623. ms.  Millisecond.
  624.  
  625. MSB.  Most significant byte.
  626.  
  627. ns.  Nanosecond.
  628.  
  629. one.  A true signal value.
  630.  
  631. peripheral device.  A peripheral that can be attached to an  SCSI device 
  632. (e.g., magnetic-disk, printer, optical-disk, or magnetic-tape).
  633.  
  634. reconnect.  The function that occurs when a target selects an initiator to 
  635. continue an operation after a disconnect.
  636.  
  637. reserved.  The term used for bits, bytes, fields, and code values that are set 
  638. aside for future standardization.
  639.  
  640. SCSI address.  The octal representation of the unique address (0-7) assigned 
  641. to an SCSI device.  This address would normally be assigned and set in the 
  642. SCSI device during system installation.
  643.  
  644. SCSI ID.  The bit-significant representation of the SCSI address referring to 
  645. one of the signal lines DB(7-0).
  646.  
  647. SCSI device.  A host computer adapter or a peripheral controller or an 
  648. intelligent peripheral that can be attached to the SCSI bus.
  649.  
  650. signal assertion.  The act of driving a signal to the true state.
  651.  
  652. signal negation.  The act of driving a signal to the false state or allowing 
  653. the cable terminators to bias the signal to the false state (by placing the 
  654. driver in the high impedance condition).
  655.  
  656. signal release.  The act of allowing the cable terminators to bias the signal 
  657. to the false state (by placing the driver in the high impedance condition).
  658.  
  659.  
  660. status.  One byte of information sent from a target to an initiator upon 
  661. completion of each command.
  662.  
  663. target.  An SCSI device that performs an operation requested by an initiator.
  664.  
  665. us.  Microsecond.
  666.  
  667. vendor unique.  In this standard, this term indicates bits, fields, or code 
  668. values that are vendor specific.
  669.  
  670. xxH.  Numbers followed by capital H subscript are hexadecimal values.  All 
  671. other numbers are decimal values. 
  672.  
  673. zero.  A false signal value.
  674.  
  675. 3.2 Editorial Conventions.  Certain words and terms used in this standard have 
  676. a specific meaning beyond the normal English meaning.  These words and terms 
  677. are defined either in the glossary (see 3.1) or in the text where they first 
  678. appear (e.g., initiator).  Names of signals, phases, conditions, messages, 
  679. commands, statuses, and sense keys are in all uppercase (e.g., REQUEST SENSE).  
  680. Lowercase is used for words having the normal English meaning.
  681.  
  682.  
  683. 
  684. .fo Section 4                            #
  685. 4. Physical Characteristics
  686.  
  687. This section contains the physical definition of the SCSI.  The connectors, 
  688. cables, signals, terminators, and bus timing needed to implement SCSI are 
  689. covered.
  690.  
  691. 4.1 Physical Description.  SCSI devices are daisy-chained together using a 
  692. common cable.  Both ends of the cable are terminated.  All signals are common 
  693. between all SCSI devices.  Two driver/receiver alternatives are available:
  694.  
  695.   (1) Single-ended drivers and receivers, which allow a maximum cable length 
  696. of six meters (primarily for connection within a cabinet)
  697.  
  698.   (2) Differential drivers and receivers, which allow a maximum cable length 
  699. of 25 meters (primarily for connection outside of a cabinet)
  700.  
  701. 4.2 Cable Requirements.  An ideal impedance match with cable terminators 
  702. implies a cable characteristic impedance of 132 ohms (singled-ended option) or 
  703. 122 ohms (differential option). In general, cables with this high of a 
  704. characteristic impedance are not available; however, impedances that are 
  705. somewhat lower are satisfactory.  A characteristic impedance of 100 ohms + 10% 
  706. is recommended for unshielded flat or twisted pair ribbon cable.  A 
  707. characteristic impedance greater than 90 ohms is preferred for shielded 
  708. cables; however, most available cables have a somewhat lower characteristic 
  709. impedance.  To minimize discontinuities and signal reflections, cables of 
  710. different impedances should not be used in the same bus.  Implementations may 
  711. require trade-offs in shielding effectiveness, cable length, the number of 
  712. loads, transfer rates, and cost to achieve satisfactory system operation.
  713.  
  714.   A minimum conductor size of 28 AWG shall be employed to minimize noise 
  715. effects and ensure proper distribution of optional terminator power.
  716. .cp 5
  717.   4.2.1 Single-Ended Cable.  A 50-conductor flat cable or 25-signal twisted-
  718. pair cable shall be used.  The maximum cable length shall be 6.0 meters.
  719.  
  720.   A stub length of no more than 0.1 meters is allowed off the mainline 
  721. interconnection within any connected equipment.
  722.  
  723.   SCSI bus termination may be internal to the SCSI devices that are at the 
  724. ends of the cable.
  725.  
  726.   4.2.2 Differential Cable.  A 50-conductor cable or 25-signal twisted-pair 
  727. cable shall be used.  The maximum cable length shall be 25 meters.
  728.  
  729.   A stub length of no more than 0.2 meters is allowed off the mainline 
  730. interconnection within any connected equipment.
  731.  
  732.   SCSI bus termination may be internal to the SCSI devices that are at the 
  733. ends of the cable.
  734.  
  735. 4.3 Connector Requirements.  Nonshielded connectors are specified.  The 
  736. nonshielded connectors are typically used for in-cabinet applications.  
  737. Appendix D defines recommended shielded connectors and their pin assignments.  
  738. These connectors are typically used for external applications where 
  739. electromagnetic compatibility (EMC) and electrostatic discharge (ESD) 
  740. protection may be required.  Either type of connector may be used with the 
  741. single-ended or differential drivers.
  742.  
  743.  
  744.   The nonshielded SCSI device connector (Figure 4-1) shall be a 50-conductor 
  745. connector consisting of two rows of 25 male pins with adjacent pins 2.54 mm 
  746. (0.1 in) apart.  A shroud and header body should be used.  The nonmating 
  747. portion of the connector is shown for reference only.
  748.  
  749.   The nonshielded cable connector (Figure 4-2) shall be a 50-conductor 
  750. connector consisting of two rows of 25 female contacts with adjacent contacts 
  751. 2.54 mm (0.1 in) apart.  It is recommended that keyed connectors be used.
  752.  
  753.   The unshielded connector pin assignments shall be as shown in Table 4-1 for 
  754. single-ended drivers and as shown in Table 4-2 for differential drivers.
  755. .pa
  756.  
  757.  
  758.  
  759.  
  760.  
  761.  
  762.  
  763.  
  764.  
  765.  
  766.  
  767.  
  768.  
  769.  
  770.  
  771.  
  772.  
  773.  
  774.  
  775.  
  776.  
  777.  
  778.  
  779.  
  780.  
  781.  
  782.  
  783.  
  784.  
  785.  
  786.  
  787.  
  788.  
  789.  
  790.  
  791.  
  792.  
  793.  
  794.  
  795.  
  796.  
  797.  
  798.  
  799.  
  800.  
  801.  
  802.  
  803.  
  804.  
  805.  
  806.  
  807.  
  808.  
  809.  
  810.  
  811.                 Figure 4-1a. Nonshielded SCSI Device Connector
  812. .pa
  813.  
  814. ==============================================================================
  815. Dimensions    Millimeters    Inches
  816. ------------------------------------------------------------------------------
  817.    D1          2.54          0.100 
  818.    D2*        82.80          3.260 
  819.    D3          2.54          0.100 
  820.    D4          4.83          0.190 
  821.    D5*         8.51          0.335 
  822.    D6*        72.64          2.860 
  823.    D7*        78.74          3.100 
  824.    D8*        13.94          0.549 
  825.    D9          4.19          0.165 
  826.    D10         6.09          0.240 
  827.    D11         6.60          0.260 
  828. ==============================================================================
  829. NOTES:
  830.   (1) Fifty Contacts on 2.54-mm (0.100-inch) spacing = 60.96 mm (2.40 inch).
  831.   (2) Tolerances + 0.127 mm (0.005 inch) noncumulative.
  832.   (3) Dimensions listed with asterisks (*) are shown for reference only.
  833.  
  834.  
  835.                 Figure 4-1b. Nonshielded SCSI Device Connector
  836.  
  837.  
  838.  
  839.  
  840.  
  841.  
  842. (Editors note:  Figures 4-1a and 4-1b are to be combined into a single figure 
  843. during the final editing.)
  844. .pa
  845.  
  846.  
  847.  
  848.  
  849.  
  850.  
  851.  
  852.  
  853.  
  854.  
  855.  
  856.  
  857.  
  858.  
  859.  
  860.  
  861.  
  862.  
  863.  
  864.  
  865.  
  866.  
  867.  
  868.  
  869.  
  870.  
  871.  
  872.  
  873.  
  874.  
  875.  
  876.  
  877.  
  878.  
  879.  
  880.  
  881.  
  882.  
  883.  
  884.  
  885.  
  886.  
  887.  
  888.  
  889.  
  890.  
  891.  
  892.  
  893.  
  894.  
  895.  
  896.  
  897.  
  898.  
  899.  
  900.                    Figure 4-2a. Nonshielded Cable Connector
  901. .pa
  902.  
  903. ==============================================================================
  904. Dimensions    Millimeters    Inches
  905. ------------------------------------------------------------------------------
  906.    C1          2.5400        0.100
  907.    C2         60.9600        2.400
  908.    C3          2.5400        0.100
  909.    C4          8.3570        0.329
  910.    C5          3.3025        0.130
  911.    C6         68.0720        2.680
  912.    C7          6.0960        0.240
  913.    C8*         8.1530        0.321
  914.    C9*        13.4870        0.531
  915.    C10*        3.8100        0.150
  916.    C11*        1.2700        0.050
  917.    C12*        6.0960        0.240
  918.    C13        32.3850        1.275
  919.    C14         3.3020        0.130
  920.    C15         7.4930        0.295
  921.    C16         2.6670        0.105 
  922.    C17         1.6250        0.064
  923. ==============================================================================
  924. NOTES:
  925.   (1) Fifty contacts on 1.27-mm (0.05-inch)* staggered spacing = 62.23 mm 
  926. (2.450 inch)*.
  927.   (2) Tolerances + 0.127 mm (0.005 inch) noncumulative.
  928.   (3) Dimensions listed with asterisks (*) are shown for reference only.
  929.  
  930.                    Figure 4-2b. Nonshielded Cable Connector
  931.  
  932.  
  933.  
  934.  
  935.  
  936.  
  937. (Editors note:  Figures 4-2a and 4-2b are to be combined into a single figure 
  938. during the final editing.)
  939.  
  940. (Pages 17-19 and 19.1-19.4 are deleted.  The information previously contained 
  941. on these pages has been moved to Appendix D.)
  942. .pa
  943.  
  944. .pn 20
  945. .fo Section 4                            #
  946.                                   Table 4-1
  947.                          Single-Ended Pin Assignments
  948.  
  949. ==============================================================================
  950.                             Signal      Pin Number
  951. ------------------------------------------------------------------------------
  952.                             -DB(0)           2
  953.                             -DB(1)           4
  954.                             -DB(2)           6
  955.                             -DB(3)           8
  956.                             -DB(4)          10
  957.                             -DB(5)          12
  958.                             -DB(6)          14
  959.                             -DB(7)          16
  960.                             -DB(P)          18
  961.                             GROUND          20
  962.                             GROUND          22
  963.                             GROUND          24
  964.                             TERMPWR         26
  965.                             GROUND          28
  966.                             GROUND          30
  967.                             -ATN            32
  968.                             GROUND          34
  969.                             -BSY            36
  970.                             -ACK            38
  971.                             -RST            40
  972.                             -MSG            42
  973.                             -SEL            44
  974.                             -C/D            46
  975.                             -REQ            48
  976.                             -I/O            50
  977. ==============================================================================
  978. NOTES:
  979.   (1) All odd pins except pin 25 shall be connected to ground.  Pin 25 should 
  980. be left open.  Some products designed prior to the generation of this standard 
  981. connected this pin to ground.
  982.   (2) The minus sign next to the signals indicates active low.
  983. .pa
  984.  
  985.                                   Table 4-2
  986.                          Differential Pin Assignments
  987.  
  988. ==============================================================================
  989.               Signal Name        Pin Number         Signal Name
  990. ------------------------------------------------------------------------------
  991.               SHIELD GROUND      1         2        GROUND 
  992.               +DB(0)             3         4        -DB(0) 
  993.               +DB(1)             5         6        -DB(1) 
  994.               +DB(2)             7         8        -DB(2) 
  995.               +DB(3)             9        10        -DB(3) 
  996.               +DB(4)            11        12        -DB(4) 
  997.               +DB(5)            13        14        -DB(5) 
  998.               +DB(6)            15        16        -DB(6) 
  999.               +DB(7)            17        18        -DB(7) 
  1000.               +DB(P)            19        20        -DB(P) 
  1001.               DIFFSENS          21        22        GROUND 
  1002.               GROUND            23        24        GROUND 
  1003.               TERMPWR           25        26        TERMPWR
  1004.               GROUND            27        28        GROUND 
  1005.               +ATN              29        30        -ATN 
  1006.               GROUND            31        32        GROUND 
  1007.               +BSY              33        34        -BSY 
  1008.               +ACK              35        36        -ACK 
  1009.               +RST              37        38        -RST 
  1010.               +MSG              39        40        -MSG 
  1011.               +SEL              41        42        -SEL 
  1012.               +C/D              43        44        -C/D 
  1013.               +REQ              45        46        -REQ 
  1014.               +I/O              47        48        -I/O 
  1015.               GROUND            49        50        GROUND 
  1016. ==============================================================================
  1017. NOTE:
  1018.   (1) SHIELD GROUND is optional on some cables.  (Implementors note:  Some 
  1019. shielded flat ribbon cables use pin 1 as a connection to the shield.)
  1020. .pa
  1021.  
  1022. .pn 22
  1023. .fo Section 4                            #
  1024. 4.4 Electrical Description
  1025.  
  1026. NOTE:  For these measurements, SCSI bus termination is assumed to be external 
  1027. to the SCSI device.  An SCSI device may have the provision for allowing 
  1028. optional internal termination.
  1029.  
  1030.   4.4.1 Single-Ended Alternative.  All assigned signals shall be terminated 
  1031. with 220 ohms to +5 volts (nominal) and 330 ohms to ground at each end of the 
  1032. cable.  (See Figure 4-5.)  All signals shall use open-collector or three-state 
  1033. drivers.
  1034.  
  1035.      4.4.1.1 Output Characteristics.  Each signal driven by an SCSI device 
  1036. shall have the following output characteristics when measured at the SCSI 
  1037. device's connector:
  1038.  
  1039.   Signal assertion = 0.0 volts dc to 0.4 volts dc 
  1040.   Minimum driver output capability = 48 milliamps (sinking) at 0.5 volts dc
  1041.   Signal negation = 2.5 volts dc to 5.25 volts dc
  1042.  
  1043.      4.4.1.2 Input Characteristics.  Each signal received by an SCSI device 
  1044. shall have the following input characteristics when measured at the SCSI 
  1045. device's connector:
  1046.  
  1047.   Signal true = 0.0 volts dc to 0.8 volts dc
  1048.   Maximum total input load = -0.4 milliamps at 0.4 volts dc
  1049.   Signal false = 2.0 volts dc to 5.25 volts dc
  1050.   Minimum input hysteresis = 0.2 volts dc
  1051.  
  1052.   4.4.2 Differential Alternative.  All signals consist of two lines denoted 
  1053. +SIGNAL and -SIGNAL.  A signal is true when +SIGNAL is more positive than 
  1054. -SIGNAL, and a signal is false when -SIGNAL is more positive than +SIGNAL.  
  1055. All assigned signals shall be terminated at each end of the cable as shown in 
  1056. Figure 4-6.
  1057.  
  1058. NOTE:  As an option, the DIFFSENS signal of the connector is reserved for an 
  1059. active high enable for the differential drivers.  If a single-ended device or 
  1060. terminator is inadvertently connected, this signal is grounded, disabling the 
  1061. drivers.  (See Figure 4-7.)
  1062.  
  1063.      4.4.2.1 Output Characteristics.  Each signal driven by an SCSI device 
  1064. shall have the following output characteristics when measured at the SCSI 
  1065. device's connector:
  1066.  
  1067.    VOL (Low-level output voltage) = 2.0 V maximum at IOL (Low-level output 
  1068.                                       current) = 55 milliamps.
  1069.    VOH (High-level output voltage) = 3.0 V minimum at IOH (High-level output 
  1070.                                        current) = -55 milliamps.
  1071.    VOD (Differential voltage) = 1.0 V minimum with common-mode voltage ranges 
  1072.                                   from -7 volts dc to +12 volts dc.
  1073.  
  1074.   VOL and VOH shall be as measured between the output terminal and the SCSI 
  1075. device's logic ground reference.
  1076.  
  1077.   The output characteristics shall additionally conform to EIA RS-485-1983.
  1078. .pa
  1079.  
  1080.      4.4.2.2 Input Characteristics.  Each signal received by an SCSI device 
  1081. shall have the following input characteristics when measured at the SCSI 
  1082. device's connector:
  1083.  
  1084.   II (Input current on either input) = + 2.0 milliamps maximum.
  1085.  
  1086. NOTE:  These characteristics include both receivers and passive drivers.
  1087.  
  1088.   This requirement shall be met with the input voltage varying between 
  1089. -7 volts dc and +12 volts dc, with power on or off, and with the hysteresis 
  1090. equaling 35 millivolts, minimum.
  1091.  
  1092.   The input characteristics shall additionally conform to EIA RS-485-1983.
  1093.  
  1094.   4.4.3 Terminator Power (Optional).  Single-ended SCSI devices providing 
  1095. terminator power (TERMPWR) shall have the following characteristics:
  1096.  
  1097.   VTerm =  4.0 volts dc to 5.25 volts dc
  1098.            800 milliamps minimum source drive capability
  1099.            1.0 milliamp maximum sink capability (except for the purposes of 
  1100.              providing power to an internal terminator) with 1.0 amp 
  1101.              recommended current limiting (e.g., a fuse).
  1102.  
  1103.   Differential SCSI devices providing terminator power (TERMPWR) shall have 
  1104. the following characteristics:
  1105.  
  1106.   VTerm =  4.0 volts dc to 5.25 volts dc
  1107.            600 milliamps minimum source drive capability
  1108.            1.0 milliamp maximum sink capability (except for the purposes of 
  1109.              providing power to an internal terminator) with 1.0 amp 
  1110.              recommended current limiting (e.g., a fuse).
  1111.  
  1112.   The use of keyed connectors is recommended in SCSI devices that provide 
  1113. terminator power to prevent accidental grounding or misconnection of 
  1114. terminator power.
  1115.  
  1116.   SCSI devices that supply terminator power shall do so through a diode or 
  1117. similar semiconductor that prevents the backflow of power to the SCSI device.
  1118. .pa
  1119.  
  1120.  
  1121.  
  1122.  
  1123.  
  1124.  
  1125.  
  1126.  
  1127.  
  1128.  
  1129.  
  1130.  
  1131.  
  1132.  
  1133.  
  1134.  
  1135.  
  1136.                Figure 4-5. Termination for Single-Ended Devices
  1137.  
  1138.  
  1139.  
  1140.  
  1141.  
  1142.  
  1143.  
  1144.  
  1145.  
  1146.  
  1147.  
  1148.  
  1149.  
  1150.  
  1151.  
  1152.  
  1153.  
  1154.  
  1155.  
  1156.  
  1157.  
  1158.                Figure 4-6. Termination for Differential Devices
  1159.  
  1160.  
  1161.  
  1162.  
  1163.  
  1164.  
  1165.  
  1166.  
  1167.  
  1168.  
  1169.  
  1170.  
  1171.  
  1172.  
  1173.  
  1174.         Figure 4-7. Differential Driver Protection Circuit (Optional)
  1175. .pa
  1176.  
  1177. 4.5 SCSI Bus.  Communication on the SCSI bus is allowed between only two SCSI 
  1178. devices at any given time.  There is a maximum of eight SCSI devices.  Each 
  1179. SCSI device has an SCSI ID bit assigned as shown in Figure 4-8.
  1180.  
  1181.   When two SCSI devices communicate on the SCSI bus, one acts as an initiator 
  1182. and the other acts as a target.  The initiator originates an operation and the 
  1183. target performs the operation.  An SCSI device usually has a fixed role as an 
  1184. initiator or target, but some devices may be able to assume either role.
  1185.  
  1186.   An initiator may address up to eight peripheral devices that are connected 
  1187. to a target.  An option allows the addressing of up to 2,048 peripheral 
  1188. devices per target using extended messages.  Three sample system 
  1189. configurations are shown in Figure 4-9.
  1190.  
  1191.  
  1192.  
  1193.      DB(7) DB(6) DB(5) DB(4) DB(3) DB(2) DB(1) DB(0)  <-- DATA BUS
  1194.      |     |     |     |     |     |     |     |
  1195.      |     |     |     |     |     |     |     SCSI ID = 0
  1196.      |     |     |     |     |     |     | 
  1197.      |     |     |     |     |     |     SCSI ID = 1
  1198.      |     |     |     |     |     |
  1199.      |     |     |     |     |     SCSI ID = 2
  1200.      |     |     |     |     |
  1201.      |     |     |     |     SCSI ID = 3
  1202.      |     |     |     |
  1203.      |     |     |     SCSI ID = 4
  1204.      |     |     |
  1205.      |     |     SCSI ID = 5
  1206.      |     |
  1207.      |     SCSI ID = 6
  1208.      |
  1209.      SCSI ID = 7
  1210.  
  1211.  
  1212.                            Figure 4-8. SCSI ID Bits
  1213. .pa
  1214.  
  1215.  
  1216.  
  1217.  
  1218.  
  1219.  
  1220.  
  1221.  
  1222.  
  1223.  
  1224.  
  1225.  
  1226.  
  1227.  
  1228.  
  1229.  
  1230.  
  1231.  
  1232.  
  1233.  
  1234.  
  1235.  
  1236.  
  1237.  
  1238.  
  1239.  
  1240.  
  1241.  
  1242.  
  1243.  
  1244.  
  1245.  
  1246.  
  1247.  
  1248.  
  1249.  
  1250.  
  1251.  
  1252.  
  1253.  
  1254.  
  1255.  
  1256.  
  1257.  
  1258.  
  1259.  
  1260.  
  1261.  
  1262.  
  1263.  
  1264.  
  1265.  
  1266.  
  1267.  
  1268.  
  1269.                     Figure 4-9. Sample SCSI Configurations
  1270. .pa
  1271.  
  1272.   Up to eight SCSI devices can be supported on the SCSI bus.  They can be any 
  1273. combination of initiators and targets.
  1274.  
  1275.   Certain SCSI bus functions are assigned to the initiator and certain SCSI 
  1276. bus functions are assigned to the target.  The initiator may arbitrate for the 
  1277. SCSI bus and select a particular target.  The target may request the transfer 
  1278. of COMMAND, DATA, STATUS, or other information on the DATA BUS, and in some 
  1279. cases it may arbitrate for the SCSI bus and reselect an initiator for the 
  1280. purpose of continuing an operation.
  1281.  
  1282.   Information transfers on the DATA BUS are asynchronous and follow a defined 
  1283. REQ/ACK handshake protocol.  One byte of information may be transferred with 
  1284. each handshake.  An option is defined for synchronous data transfer.
  1285.  
  1286. 4.6 SCSI Bus Signals.  There are a total of eighteen signals.  Nine are used 
  1287. for control and nine are used for data.  (Data signals include the parity 
  1288. signal option).  These signals are described as follows:
  1289.  
  1290. BSY (BUSY).  An "OR-tied" signal that indicates that the bus is being used.
  1291.  
  1292. SEL (SELECT).  A signal used by an initiator to select a target or by a target 
  1293. to reselect an initiator.
  1294.  
  1295. C/D  (CONTROL/DATA).  A signal driven by a target that indicates whether 
  1296. CONTROL or DATA information is on the DATA BUS.  True indicates CONTROL.
  1297.  
  1298. I/O (INPUT/OUTPUT).  A signal driven by a target that controls the direction 
  1299. of data movement on the DATA BUS with respect to an initiator. True indicates 
  1300. input to the initiator.  This signal is also used to distinguish between 
  1301. SELECTION and RESELECTION phases.
  1302.  
  1303. MSG (MESSAGE).  A signal driven by a target during the MESSAGE phase.
  1304.  
  1305. REQ (REQUEST).  A signal driven by a target to indicate a request for a 
  1306. REQ/ACK data transfer handshake.
  1307.  
  1308. ACK (ACKNOWLEDGE).  A signal driven by an initiator to indicate an 
  1309. acknowledgment for a REQ/ACK data transfer handshake.
  1310.  
  1311. ATN (ATTENTION).  A signal driven by an initiator to indicate the ATTENTION 
  1312. condition.
  1313.  
  1314. RST (RESET).  An "OR-tied" signal that indicates the RESET condition.
  1315.  
  1316. DB(7-0,P) (DATA BUS).  Eight data-bit signals, plus a parity-bit signal that 
  1317. form a DATA BUS.   DB(7) is the most significant bit and has the highest 
  1318. priority during the ARBITRATION phase.  Bit number, significance, and priority 
  1319. decrease downward to DB(0).  A data bit is defined as one when the signal 
  1320. value is true and is defined as zero when the signal value is false.
  1321.  
  1322.   Data parity DB(P) is odd.  The use of parity is a system option (i.e., a 
  1323. system is configured so that all SCSI devices on a bus generate parity and 
  1324. have parity detection enabled, or all SCSI devices have parity detection 
  1325. disabled or not implemented).  Parity is not valid during the ARBITRATION 
  1326. phase.
  1327.  
  1328.  
  1329.   4.6.1 Signal Values.  Signals may assume true or false values.  There are 
  1330. two methods of driving these signals.  In both cases, the signal shall be 
  1331. actively driven true, or asserted. In the case of OR-tied drivers, the driver 
  1332. does not drive the signal to the false state, rather the bias circuitry of the 
  1333. bus terminators pulls the signal false whenever it is released by the drivers 
  1334. at every SCSI device.  If any driver is asserted, then the signal is true.  In 
  1335. the case of non-OR-tied drivers, the signal may be actively driven false, or 
  1336. negated.  In this standard, wherever the term negated is used, it means that 
  1337. the signal may be actively driven false, or may be simply released (in which 
  1338. case the bias circuitry pulls it false), at the option of the implementor.  
  1339. The advantage to actively drive signals false is that the transition from true 
  1340. to false occurs more quickly, and noise margins may be somewhat improved; this 
  1341. may permit somewhat faster data transfer. 
  1342.  
  1343.   4.6.2 OR-Tied Signals.  The BSY and RST signals shall be OR-tied only.  In 
  1344. the ordinary operation of the bus, these signals are simultaneously driven 
  1345. true by several drivers.  No signals other than BSY, RST, and DB(P) are 
  1346. simultaneously driven by two or more drivers, and any signal other than BSY 
  1347. and RST may employ OR-tied or non-OR-tied drivers.  DB(P) shall not be driven 
  1348. false during the ARBITRATION phase.  There is no operational problem in mixing 
  1349. OR-tied and non-OR-tied drivers on signals other than BSY and RST.
  1350.  
  1351.   4.6.3 Signal Sources.  Table 4-3 indicates which type of SCSI device is 
  1352. allowed to source each signal.  No attempt is made to show if the source is 
  1353. driving asserted, driving negated, or is passive.  All SCSI device drivers 
  1354. that are not active sources shall be in the passive state.  Note that the RST 
  1355. signal may be sourced by any SCSI device at any time.
  1356. .pa
  1357.  
  1358.                                   Table 4-3
  1359.                                 Signal Sources
  1360.  
  1361. ==============================================================================
  1362.                                              Signals
  1363.                     ----------------------------------------------------------
  1364.                                           C/D, I/O,
  1365. Bus Phase           BSY       SEL         MSG, REQ     ACK/ATN       DB(7-0,P)
  1366. ------------------------------------------------------------------------------
  1367. BUS FREE            None      None        None         None          None
  1368. ARBITRATION         All       Winner      None         None          SCSI ID
  1369. SELECTION           I&T       Initiator   None         Initiator     Initiator
  1370. RESELECTION         I&T       Target      Target       Initiator     Target
  1371. COMMAND             Target    None        Target       Initiator     Initiator
  1372. DATA IN             Target    None        Target       Initiator     Target
  1373. DATA OUT            Target    None        Target       Initiator     Initiator
  1374. STATUS              Target    None        Target       Initiator     Target
  1375. MESSAGE IN          Target    None        Target       Initiator     Target
  1376. MESSAGE OUT         Target    None        Target       Initiator     Initiator
  1377. ==============================================================================
  1378.  
  1379. All:          The signal shall be driven by all SCSI  devices that are 
  1380.               actively arbitrating.
  1381.  
  1382. SCSI ID:      A unique data bit (the SCSI ID) shall be driven by each SCSI 
  1383.               device that is actively arbitrating; the other seven data bits 
  1384.               shall be released (i.e., not driven) by this SCSI device.  The 
  1385.               parity bit (DB(P)) may be undriven or driven to the true state, 
  1386.               but shall never be driven to the false state during this phase.
  1387.  
  1388. I&T:          The signal shall be driven by the initiator, target, or both, as 
  1389.               specified in the SELECTION phase and RESELECTION phase.
  1390.  
  1391. Initiator:    If this signal is driven, it shall be driven only by the active 
  1392.               initiator.
  1393.  
  1394. None:         The signal shall be released; that is, not be driven by any SCSI 
  1395.               device.  The bias circuitry of the bus terminators pulls the 
  1396.               signal to the false state.
  1397.  
  1398. Winner:       The signal shall be driven by the one SCSI device that wins 
  1399.               arbitration.
  1400.  
  1401. Target:       If the signal is driven, it shall be driven only by the active 
  1402.               target.
  1403. .pa
  1404.  
  1405. 4.7 SCSI Bus Timing.  Unless otherwise indicated, the delay-time measurements 
  1406. for each SCSI device, shown in 4.7.1 through 4.7.14, shall be calculated from 
  1407. signal conditions existing at that SCSI device's own SCSI bus connection.  
  1408. Thus, these measurements (except cable skew delay) can be made without 
  1409. considering delays in the cable.
  1410.  
  1411.   4.7.1 Arbitration Delay (2.2 microseconds).  The minimum time an SCSI device 
  1412. shall wait from asserting BSY for arbitration until the DATA BUS can be 
  1413. examined to see if arbitration has been won.  There is no maximum time.
  1414.  
  1415.   4.7.2 Assertion Period (90 nanoseconds).  The minimum time that a target 
  1416. shall assert REQ while using synchronous data transfers.  Also, the minimum 
  1417. time that an initiator shall assert ACK while using synchronous data 
  1418. transfers.
  1419.  
  1420.   4.7.3 Bus Clear Delay (800 nanoseconds).  The maximum time for an SCSI 
  1421. device to stop driving all bus signals after:
  1422.  
  1423.   (1) The BUS FREE phase is detected (BSY and SEL both false for a bus settle 
  1424. delay)
  1425.   (2) SEL is received from another SCSI device during the ARBITRATION phase
  1426.   (3) The transition of RST to true.
  1427.  
  1428. NOTE:  For the first condition above, the maximum time for an SCSI device to 
  1429. clear the bus is 1200 nanoseconds from BSY and SEL first becoming both false.  
  1430. If an SCSI device requires more than a bus settle delay to detect BUS FREE 
  1431. phase, it shall clear the bus within a bus clear delay minus the excess time.
  1432.  
  1433.   4.7.4 Bus Free Delay (800 nanoseconds).  The minimum time that an SCSI 
  1434. device shall wait from its detection of the BUS FREE phase (BSY and SEL both 
  1435. false for a bus settle delay) until its assertion of BSY when going to the 
  1436. ARBITRATION phase.
  1437.  
  1438.   4.7.5 Bus Set Delay (1.8 microseconds).  The maximum time for an SCSI device 
  1439. to assert BSY and its SCSI ID bit on the DATA BUS after it detects BUS FREE 
  1440. phase (BSY and SEL both false for a bus settle delay) for the purpose of 
  1441. entering the ARBITRATION phase.
  1442.  
  1443.   4.7.6 Bus Settle Delay (400 nanoseconds).  The time to wait for the bus to 
  1444. settle after changing certain control signals as called out in the protocol 
  1445. definitions.
  1446.  
  1447.   4.7.7 Cable Skew Delay (10 nanoseconds).  The maximum difference in 
  1448. propagation time allowed between any two SCSI bus signals when measured 
  1449. between any two SCSI devices.
  1450.  
  1451.   4.7.8 Data Release Delay (400 nanoseconds).  The maximum time for an 
  1452. initiator to release the DATA BUS signals following the transition of the I/O 
  1453. signal from false to true.
  1454.  
  1455.   4.7.9 Deskew Delay (45 nanoseconds).  The minimum time required for deskew 
  1456. of certain signals.
  1457.  
  1458.   4.7.10 Hold Time (45 nanoseconds).  The minimum time added between the 
  1459. assertion of REQ or ACK and the changing of the data lines to provide hold 
  1460. time in the initiator or target, respectively, while using synchronous data 
  1461.  
  1462. transfers.
  1463.  
  1464.   4.7.11 Negation Period (90 nanoseconds).  The minimum time that a target 
  1465. shall negate REQ while using synchronous data transfers.  Also, the minimum 
  1466. time that an initiator shall negate ACK while using synchronous data 
  1467. transfers.
  1468.  
  1469.   4.7.12 Reset Hold Time (25 microseconds).  The minimum time for which RST is 
  1470. asserted.  There is no maximum time.
  1471.  
  1472.   4.7.13 Selection Abort Time (200 microseconds).  The maximum time that a 
  1473. target (or initiator) shall take from its most recent detection of being 
  1474. selected (or reselected) until asserting a BSY response.  This timeout is 
  1475. required to ensure that a target (or initiator) does not assert BSY after a 
  1476. SELECTION (or RESELECTION) phase has been aborted.  This is not the selection 
  1477. timeout period; see Sections 5.1.3.5 and 5.1.4.2 for a complete description.
  1478.  
  1479.   4.7.14 Selection Timeout Delay (250 milliseconds, recommended).  The minimum 
  1480. time that an initiator (or target) should wait for a BSY response during the 
  1481. SELECTION (or RESELECTION) phase before starting the timeout procedure.  Note 
  1482. that this is only a recommended time period.  The specifications for the 
  1483. peripheral devices shall be consulted for the actual timing requirements.
  1484.  
  1485.   4.7.15 Transfer Period (set during a MESSAGE phase).  The Transfer Period 
  1486. specifies the minimum time allowed between the leading edges of successive REQ 
  1487. pulses and of successive ACK pulses while using synchronous data transfers.  
  1488. (See Sections 5.1.5.2 and 5.5.5.)
  1489.  
  1490.  
  1491. 
  1492.  
  1493.